//
//  JMShareMessageObject.m
//  JMLibrary
//
//  Created by zhengxianda on 2018/7/25.
//

#import "JMShareMessageObject.h"

@implementation JMShareMessageObject

+ (instancetype)objecWithText:(NSString *)text{
    JMShareMessageObject *object = [self new];
    object.text = text;
    return object;
}

+ (instancetype)objecWithTitle:(NSString *)title
                  descriptions:(NSString *)descriptions
                    thumbImage:(NSData *)thumbImage
                    shareImage:(NSData *)shareImage{
    JMShareMessageObject *object = [self new];
    object.title = title;
    object.descriptions = descriptions;
    object.thumbImage = thumbImage;
    object.shareImage = shareImage;
    return object;
}

+ (instancetype)objecWithTitle:(NSString *)title
                  descriptions:(NSString *)descriptions
                    thumbImage:(NSData *)thumbImage
                    webPageURL:(NSURL *)webPageURL{
    JMShareMessageObject *object = [self new];
    object.title = title;
    object.descriptions = descriptions;
    object.thumbImage = thumbImage;
    object.webPageURL = webPageURL;
    return object;
}

+ (instancetype)objecWithTitle:(NSString *)title
                  descriptions:(NSString *)descriptions
                    thumbImage:(NSData *)thumbImage
                  musicDataURL:(NSURL *)musicDataURL
                  musicPageURL:(NSURL *)musicPageURL{
    JMShareMessageObject *object = [self new];
    object.title = title;
    object.descriptions = descriptions;
    object.thumbImage = thumbImage;
    object.musicDataURL = musicDataURL;
    object.musicPageURL = musicPageURL;
    return object;
}

@end
